<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body padding-left-40">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs5">
                <label class="block relative">
                    <span class="color-green font-w7">任务名称</span>
                    <span class="color-desc margin-left-5">name</span>
                    <input name="name" value='{$vo.name|default=""}' required placeholder="请输入任务的昵称" class="layui-input">
                    <span class="help-block">任务显示的任务别名，请尽量保持不要重复</span>
                </label>
            </div>
            <div class="layui-col-xs5">
                <label class="block relative">
                    <span class="color-green font-w7">扫描地址</span>
                    <span class="color-desc margin-left-5">URL</span>
                    <input type="url" name="url" value='{$vo.url|default=""}' required placeholder="请输入任务的扫描地址" class="layui-input">
                    <span class="help-block">要扫描的URL地址</span>
                </label>
            </div>
        </div>


        <div class="hr-line-dashed margin-top-10 margin-bottom-10"></div>
        <label class="layui-form-item block relative">
            <span class="color-green font-w7">任务描述</span><span class="color-desc margin-left-5">Description</span>
            <textarea placeholder="请输入任务描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
        </label>
        <div class="hr-line-dashed"></div>
        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
        <div class="layui-form-item text-center">
            <button class="layui-btn" type='submit'>保存数据</button>
            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
        </div>
    </div>
</form>